<% %>
<div class=page_head><h2><%='Time logs of %s'.t / @user.name%></h2></div>
  <div id="new_item" class="float_center" style="margin-bottom:5px">
     <a href=# class=admin onclick="Effect.BlindDown('new_time',{duration:0.2});"><%='New Time'.t%></a>
  </div>

<div id='new_time' style="display:none">
<%form_remote_for :ss,:url=>{:action => 'create'}, :loading => "Element.show('indicator')", :success => "Element.hide('new_user')", :complete => "Element.hide('indicator')" do 
%>
  <%=render :partial => 'form' %>
  <div class="float_center">
     <span id='indicator' style="display:none;">
       <%=image_tag "indicator.gif"%>
     </span>     
     <%= submit_tag "Create Time".t%> <%="or".t%> <a href=# class="admin" onclick="Element.hide('new_time');"><%='Cancel'.t%></a>
  </div>
<%end%>
</div>

<%form_remote_for :time,:url=>{:action=>'time_flag'} do |f|%> 
<div id ='timelogs'>
<%=render :partial => "time_log", :locals=>{:time_log=>@time_logs}%>
</div>
<%end%>
